package com.aa.base

import android.app.Activity
import android.content.Context

/**
 * @author Afra55
 * @date 6/4/21
 * A smile is the best business card.
 */
open class AppAdActivity : Activity() {

    fun getContext():Context{
        return this
    }

    fun getActivity():Activity{
        return this
    }

    open fun dip2px(dipValue: Float): Int {
        val scale = this.resources.displayMetrics.density
        return (dipValue * scale + 0.5f).toInt()
    }
}